
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-guanbi"></i>
                    <div class="name">关闭</div>
                    <div class="fontclass">.ZMPageIcon-guanbi</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-user02"></i>
                    <div class="name">user02</div>
                    <div class="fontclass">.ZMPageIcon-user02</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shouqishang"></i>
                    <div class="name">收起，上</div>
                    <div class="fontclass">.ZMPageIcon-shouqishang</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-fanhuizuo"></i>
                    <div class="name">返回，左</div>
                    <div class="fontclass">.ZMPageIcon-fanhuizuo</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-jinruyou"></i>
                    <div class="name">进入，右</div>
                    <div class="fontclass">.ZMPageIcon-jinruyou</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-zhankaixia"></i>
                    <div class="name">展开，下</div>
                    <div class="fontclass">.ZMPageIcon-zhankaixia</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shezhi"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.ZMPageIcon-shezhi</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-chenggong"></i>
                    <div class="name">成功</div>
                    <div class="fontclass">.ZMPageIcon-chenggong</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-fanhui"></i>
                    <div class="name">返回</div>
                    <div class="fontclass">.ZMPageIcon-fanhui</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuaxin"></i>
                    <div class="name">刷新</div>
                    <div class="fontclass">.ZMPageIcon-shuaxin</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-guanbi1"></i>
                    <div class="name">关闭</div>
                    <div class="fontclass">.ZMPageIcon-guanbi1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-changyonggoupiaorenbianji"></i>
                    <div class="name">常用购票人／编辑32</div>
                    <div class="fontclass">.ZMPageIcon-changyonggoupiaorenbianji</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-youxiang"></i>
                    <div class="name">邮箱</div>
                    <div class="fontclass">.ZMPageIcon-youxiang</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-icon-test"></i>
                    <div class="name">其他</div>
                    <div class="fontclass">.ZMPageIcon-icon-test</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-icon-test1"></i>
                    <div class="name">更多</div>
                    <div class="fontclass">.ZMPageIcon-icon-test1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-xiaoxi"></i>
                    <div class="name">消息</div>
                    <div class="fontclass">.ZMPageIcon-xiaoxi</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuju"></i>
                    <div class="name">数据</div>
                    <div class="fontclass">.ZMPageIcon-shuju</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-wang"></i>
                    <div class="name">网</div>
                    <div class="fontclass">.ZMPageIcon-wang</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuju1"></i>
                    <div class="name">数据2</div>
                    <div class="fontclass">.ZMPageIcon-shuju1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuju2"></i>
                    <div class="name">数据3</div>
                    <div class="fontclass">.ZMPageIcon-shuju2</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-yun"></i>
                    <div class="name">云</div>
                    <div class="fontclass">.ZMPageIcon-yun</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shoucang"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.ZMPageIcon-shoucang</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-lajixiang"></i>
                    <div class="name">垃圾箱</div>
                    <div class="fontclass">.ZMPageIcon-lajixiang</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-wenjian"></i>
                    <div class="name">文件</div>
                    <div class="fontclass">.ZMPageIcon-wenjian</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-chucun"></i>
                    <div class="name">储存</div>
                    <div class="fontclass">.ZMPageIcon-chucun</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-qia"></i>
                    <div class="name">卡</div>
                    <div class="fontclass">.ZMPageIcon-qia</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-qian"></i>
                    <div class="name">钱</div>
                    <div class="fontclass">.ZMPageIcon-qian</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-sousuo"></i>
                    <div class="name">搜索</div>
                    <div class="fontclass">.ZMPageIcon-sousuo</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuju3"></i>
                    <div class="name">数据5</div>
                    <div class="fontclass">.ZMPageIcon-shuju3</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shezhi1"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.ZMPageIcon-shezhi1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-zhuye"></i>
                    <div class="name">主页</div>
                    <div class="fontclass">.ZMPageIcon-zhuye</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-WIFI"></i>
                    <div class="name">WIFI</div>
                    <div class="fontclass">.ZMPageIcon-WIFI</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-kafei"></i>
                    <div class="name">咖啡</div>
                    <div class="fontclass">.ZMPageIcon-kafei</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-yinle"></i>
                    <div class="name">音乐</div>
                    <div class="fontclass">.ZMPageIcon-yinle</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-dizhi"></i>
                    <div class="name">地址</div>
                    <div class="fontclass">.ZMPageIcon-dizhi</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-xiazai"></i>
                    <div class="name">下载</div>
                    <div class="fontclass">.ZMPageIcon-xiazai</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-buju"></i>
                    <div class="name">布局</div>
                    <div class="fontclass">.ZMPageIcon-buju</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shuaxin1"></i>
                    <div class="name">刷新</div>
                    <div class="fontclass">.ZMPageIcon-shuaxin1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shezhi2"></i>
                    <div class="name">设置1</div>
                    <div class="fontclass">.ZMPageIcon-shezhi2</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-dun"></i>
                    <div class="name">盾</div>
                    <div class="fontclass">.ZMPageIcon-dun</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-dianhua"></i>
                    <div class="name">电话</div>
                    <div class="fontclass">.ZMPageIcon-dianhua</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-xuanze"></i>
                    <div class="name">选择</div>
                    <div class="fontclass">.ZMPageIcon-xuanze</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shangchuan"></i>
                    <div class="name">上传</div>
                    <div class="fontclass">.ZMPageIcon-shangchuan</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-guanlian"></i>
                    <div class="name">关联</div>
                    <div class="fontclass">.ZMPageIcon-guanlian</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-xuanze1"></i>
                    <div class="name">选择1</div>
                    <div class="fontclass">.ZMPageIcon-xuanze1</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-shandian"></i>
                    <div class="name">闪电</div>
                    <div class="fontclass">.ZMPageIcon-shandian</div>
                </li>
            
                <li>
                <i class="icon ZM-Page-icon-font ZMPageIcon-jinbi"></i>
                    <div class="name">金币</div>
                    <div class="fontclass">.ZMPageIcon-jinbi</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">ZM-Page-icon-font</span> <span class="hljs-selector-tag">ZMPageIcon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"ZM-Page-icon-font"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
